<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	Status:
	<h4>${error}</h4>
	<form action="crudCustomers.do" method="post">
		<p>
			Id: <input name="txtId" value="${entityCustomers.id}"
				readonly="readonly">
		</p>
		<p>
			Name: <input name="txtName" value="${entityCustomers.name}">
		</p>
		<p>
			Address: <input name="txtAddress" value="${entityCustomers.address}">
		</p>
		<p>
			Email: <input name="txtEmail" value="${entityCustomers.email}">
		</p>
		<p>
			Phone: <input name="txtPhone" value="${entityCustomers.phone}">
		</p>
		<p>
			User: <input name="txtUser" value="${entityCustomers.username}">
		</p>
		<p>
			Photo: <input type="image" name="txtPhoto1" src="${entityCustomers.photo}">
		</p>
		<p>
			 <input  name="txtPhoto" value="${entityCustomers.photo}">
		</p>
		<input type="submit" name="btnCreate" value="Create"> <input
			type="submit" name="btnUpdate" value="Update"> <input
			type="submit" name="btnDelete" value="Delete"> <input
			type="submit" name="btnRefresh" value="Refresh">
	</form>

	<h1>DANH SÃCH KHÃCH HÃNG</h1>
	<table border="1" width="100%">
		<tr bgcolor="lightgray">
			<td>Id</td>
			<td>Name</td>
			<td>Address:</td>
			<td>Email:</td>
			<td>Phone:</td>
			<td>User:</td>
			<td>Photo:</td>
			<td>&nbsp;</td>
		</tr>


		<c:forEach var="c" items="${showCustomers}">
			<tr>
				<td>${c.id}</td>
				<td>${c.name}</td>
				<td>${c.address}</td>
				<td>${c.email}</td>
				<td>${c.phone}</td>
				<td>${c.username}</td>
				<td>${c.photo}</td>


				<td><a href="crudCustomers.do?customersId=${c.id}">Chi tiết</a></td>
			</tr>
		</c:forEach>
	</table>
		<form action="crudCustomers.do" method="post">
		<p>
			Id: <input name="txtTimId" >
		</p>
		<input type="submit" name="btnSearchID" value="Search"> 
		<p>
			Name: <input name="txtTimName">
		</p>
		<input type="submit" name="btnSearchName" value="Search"> 
		<p>
			User: <input name="txtTimUser">
		</p>

		<input type="submit" name="btnSearchUser" value="Search"> 
	</form>
</body>
</html>